package com.im.service.common;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 刘志强
 * @title: BaseQuery
 * @projectName script-murder-platform
 * @description: TODO
 * @date 2024/6/1613:48
 */
@Data
public class BaseQuery {

    @ApiModelProperty("关键字")
    private String keyword;

    @ApiModelProperty("页码")
    private Integer page;

    @ApiModelProperty("每页条数")
    private Integer pageSize;

    public Page createPage() {
        return new Page(page, pageSize);
    }

}
